package org.call.hi.url;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
	
	
	    @RequestMapping("/hi")
	    public String index22() {
	        return "this is a test";
	    }
	    
	    @Autowired
	    HelloService helloSet;
	    
	    @RequestMapping("/hi1/{name}")
	    public String index55(@PathVariable("name") String name) {
	        return helloSet.hiService(name);
	    }
	    
	    
	    @RequestMapping("/hi2/{name}")
	    public String index66(@PathVariable("name") String name) {
	        return helloSet.hiService2(name);
	    }	    
	    
	    

}
